in_file = open(r"in.txt",encoding="utf8")
out_file = open(r"out.txt","w",encoding="utf8")

str_lines = in_file.readlines()

for iter in str_lines:
    in_str = '{{< image src="'+ iter.strip() + '" caption="" >}}\n'
    out_file.write(in_str)
